<?php

  // rme added
  $EmployeeUid = $_SESSION["EMPLOYEE"];
  // rme end

  require_once ( PATH_PLUGINS . 'hr' . PATH_SEP . 'class.hr.php');
  $pluginObj = new hrClass ();

  require_once ( "classes/model/HrLeaveHistory.php" );


  $fields['LEAVE_HISTORY_UID'] = G::GenerateUniqueID();;

  $fields['EMPLOYEE_ID'] = $EmployeeUid;
  $fields['JOB_ID'] = '';
  $fields['STARTDATE'] = '';
  $fields['ENDDATE'] = '';
  $fields['LENGTHOFABSENCE'] = '';
  $fields['UNITOFABSENCE'] = '';
  $fields['TYPELEAVE_ID'] = '';
  $fields['TYPETRANSACTION_ID'] = '';

  $G_MAIN_MENU = 'processmaker';
  $G_SUB_MENU = 'hr/menuhrEmployee';
  $G_ID_MENU_SELECTED = 'ID_HR_EMP';
  $G_ID_SUB_MENU_SELECTED = 'ID_HR_LEAVE_HISTORY';


  $G_PUBLISH = new Publisher;
  $G_PUBLISH->AddContent('xmlform', 'xmlform', 'hr/hrLeaveHistoryEdit', '', $fields, 'hrLeaveHistorySave' );  
  G::RenderPage('publish', 'blank');   
?>